Skip to main content

Get timeperiods

GET 

/timestreams/:timestreamId/snapshot

Get timeperiods for the specified timestream with support for paging

Request

Path Parameters

    timestreamId stringrequired

    The id of the timestream

Query Parameters

    pageSize integer

    Default value: 25

    The number of results per page

    page integer

    Default value: 1

    The page of results to return

    timestamp date-time

    If not supplied, the current time is used

Header Parameters

    x-api-key passwordrequired

    OneBasket API Key

Responses

The request has succeeded.

Schema
    page integerrequired

    The current page of results

    pageSize integerrequired

    The number of results per page

    pageTotal integerrequired

    The total number of pages

    resultsTotal integerrequired

    The total number of results

    hasNextPage booleanrequired

    True if there is a next page

    hasPreviousPage booleanrequired

    True if there is a previous page

    results object[]required

    The results for the current page

  • Array [
  • anyOf
    type stringrequired

    Possible values: [Primary]

    The type of the timeline

    type stringrequired

    Possible values: [Primary, Collection, ProductAvailability]

    Discriminator for timeline types

    circular(Timeperiods.PrimaryPeriodDto)

    id stringrequired

    The unique identifier of the timeperiod

    timestreamId stringrequired

    The unique identifier of the parent timestream

    timelineId stringrequired

    The unique identifier of the parent timeline

    title stringrequired

    The title of the timeperiod

    description stringrequired

    The description of the timeperiod

    start date-timerequired

    The start time of the timeperiod

    duration durationrequired

    The duration of the timeperiod

    end date-timerequired

    The end time of the timeperiod

  • ]
Loading...